var backPurchase = {
      save : function() {
    	  new WindowPanel({
              id: 'saveBackPurchase',
              title: '采购退货单',
              width: 800,
              height: 400,
              closeConfirm : true,
              maximizable: false,
              html : '<iframe name="backPurchaseSaveFrame" id="backPurchaseSaveFrame" src="'+projectName+'/product/backPurchase/toSave.t4m?'+getFlushParam('saveBackPurchase')+'" frameborder="0" scrolling="auto"></iframe>',
              tbar: new Toolbar({
                icon: 'image/op.gif',
                items : [{
                  type : 'button',
                  text : '保存',
                  position: {
                    a: '-80px 0px',
                    b: '-80px -120px'
                  },
                  handler : function(){
                    submitFrameForm('backPurchaseSaveFrame', 'objectForm');
                  }
                }]
              })
            });
          },
          update : function(id) {
        	  new WindowPanel({
                  id: 'updateBackPurchase',
                  title: '采购退货单修改',
                  width: 800,
                  height: 400,
                  closeConfirm : true,
                  maximizable: false,
                  html : '<iframe name="backPurchaseUpdateFrame" id="backPurchaseUpdateFrame" src="'+projectName+'/product/backPurchase/toUpdate.t4m?'+getFlushParam('updateBackPurchase')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
                  tbar: new Toolbar({
                    icon: 'image/op.gif',
                    items : [{
                      type : 'button',
                      text : '保存',
                      position: {
                        a: '-80px 0px',
                        b: '-80px -120px'
                      },
                      handler : function(){
                        submitFrameForm('backPurchaseUpdateFrame', 'objectForm');
                      }
                    }]
                  })
                });
              },
              view : function(id) {
            	  new WindowPanel({
                      id: 'viewBackPurchase',
                      title: '采购退货单详情',
                      width: 800,
                      height: 400,
                      closeConfirm : true,
                      maximizable: false,
                      html : '<iframe name="viewPurchaseUpdateFrame" id="viewPurchaseUpdateFrame" src="'+projectName+'/product/backPurchase/toUpdate.t4m?'+getFlushParam('viewBackPurchase')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
                    });
                  }
};